package com.fms.data.file;

import com.fms.model.domain.FlowSheet;
import com.fms.model.domain.IExistingFlowSheets;

public class RegisteringFlowSheetOps implements IFlowSheetOperations
{
	private IFlowSheetOperations	ops;
	private IExistingFlowSheets	sheets;

	public RegisteringFlowSheetOps(IFlowSheetOperations _ops, IExistingFlowSheets _sheets)
	{
		this.ops = _ops;
		this.sheets = _sheets;
	}

	@Override
	public void createTemplate(FlowSheet sheet) throws FileException
	{
		ops.createTemplate(sheet);
		sheets.registerNewFlowSheet(sheet);
		
	}

	@Override
	public void delete(String with)
	{
		ops.delete(with);
		
	}

	@Override
	public boolean exists(FlowSheet flowSheet)
	{
		return ops.exists(flowSheet);
	}

}
